package cn.com.jinhao.provider.business.entity;

import lombok.Data;
import lombok.ToString;

import javax.persistence.Column;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * HotLine
 * <p>Description: 反馈实体类</p>
 *
 * @author ShaneMew
 * @version 1.0
 * @date 2019/10/18
 * @see ProcedureBase
 * @since 2019-10-18
 */
@ToString
@Data
@Table(name = "BT$EVFB")
public class Feedback extends Base implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 事件编码
     */
    @Column(name = "BT$EVIF_CODE")
    protected String eventCode;

    /**
     * 派单编码
     */
    @Column(name = "BT$EVAS_CODE")
    private String dispatchCode;

    /**
     * 数据快照
     */
    @Column(name = "evfb")
    private String eventFeedback;

    /**
     * 反馈单位编码
     */
    @Column(name = "ST$DEPT_CODE_A")
    private String feedbackDeptCode;

    /**
     * 反馈单位
     */
    @Column(name = "ST$DEPT_DEPT_A")
    private String feedbackDept;

    /**
     * 反馈人编码
     */
    @Column(name = "ST$OPER_CODE_A")
    private String feedbackOperatorCode;

    /**
     * 反馈人
     */
    @Column(name = "ST$OPER_OPER_A")
    private String feedbackOperator;

    /**
     * 驳回单位编码
     */
    @Column(name = "ST$DEPT_CODE_B")
    private String rejectDeptCode;

    /**
     * 驳回单位
     */
    @Column(name = "ST$DEPT_DEPT_B")
    private String rejectDept;

    /**
     * 驳回人编码
     */
    @Column(name = "ST$OPER_CODE_B")
    private String rejectOperatorCode;

    /**
     * 驳回人
     */
    @Column(name = "ST$OPER_OPER_B")
    private String rejectOperator;

    /**
     * 接收单位编码
     */
    @Column(name = "ST$DEPT_CODE_C")
    private String receiveDeptCode;

    /**
     * 接收单位
     */
    @Column(name = "ST$DEPT_DEPT_C")
    private String receiveDept;

    /**
     * 接收人编码
     */
    @Column(name = "ST$OPER_CODE_C")
    private String receiveOperatorCode;

    /**
     * 接收人
     */
    @Column(name = "ST$OPER_OPER_C")
    private String receiveOperator;

    /**
     * 反馈日期
     */
    @Column(name = "fbdt")
    private String feedbackDatetime;

    /**
     * 审核日期
     */
    @Column(name = "rjdt")
    private String auditDatetime;

    /**
     * 是否驳回
     */
    @Column(name = "isrj")
    private Short isReject;

    /**
     * 是否已读
     */
    @Column(name = "read")
    private Short isRead;


    /**
     * 反馈审核结果同步标志
     */
    @Column(name = "rnb0")
    private BigDecimal auditSynchronizeFlag;

    /**
     * 反馈说明
     */
    @Column(name = "fbct")
    private String feedbackDesc;

    /**
     * 审核说明
     */
    @Column(name = "rjct")
    private String auditDesc;

    /**
     * 版本号
     */
    @Column(name = "version")
    private Integer version;

    /**
     * 超时处理
     */
    @Column(name = "ovtl")
    private Short timeoutHandling;

    @Transient
    private List<Attach> attachList;
}
